package com.meilingcloud.biobank.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class SampleQueryDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 样本复份编号
     */
    private String sampBackupCode;
    /**
     * 样本类型
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sampTypeId;
    /**
     * 样本源ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sampSourceId;
    /**
     * 样本组
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sampGroupId;
    /**
     * 样本源编号
     */
    private String sourceCode;
    /**
     * 样本源名称
     */
    private String sourceName;
    /**
     * 样本源类型
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sourceTypeId;
    /**
     * 样本状态
     */
    private String sampState;
    /**
     * 条码/二维码
     */
    private String qrCode;
    /**
     * 采样时间范围
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private List<Date> samplingRange;

    /**
     * 采样时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date samplingStart;
    /**
     * 采样时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date samplingEnd;

    /**
     * 库存状态
     */
    private String stockState;

    /**
     * 样本归属人 0-我的 1-所有
     */
    private String own;

    private String updateBy;

    /**
     * 删除标志 1:已经删除   0:未删除
     */
    private String delFlag;
}
